'use strict';

function get_integer_interval(number_a, number_b) {
  let result=[];
  if(number_a<number_b){
    for(let num=number_a;num<=number_b;num++){
      result.push(num);
    }
  }
  else if(number_a>number_b){
    for(let num=number_a;num>=number_b;num--){
      result.push(num);
    }
  }
  else{
    result.push(number_a);
  }
  console.log(result);
  return result;
}

module.exports = get_integer_interval;
get_integer_interval(5,5);

